<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="custom-style.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
	<div style="overflow: hidden;">
		<div style="height: 57px;min-width: 1039px;background-size: auto 100%;background:url('');">
			<img src="titleleft.png" style="float: left;"/>
			<img src="titleright.png" alt="" style="float: right;" />
		</div>
	</div>
<!-- 制作者 Doxygen 1.8.15 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>法律声明</span></a></li>
      <li><a href="_xE9_xA6_x96_xE9_xA1_xB5.html"><span>首页</span></a></li>
      <li><a href="_xE6_x9B_xB4_xE6_x96_xB0_xE8_xAE_xB0_xE5_xBD_x95.html"><span>更新记录</span></a></li>
      <li><a href="_xE7_x8E_xAF_xE5_xA2_x83_xE9_x85_x8D_xE7_xBD_xAE.html"><span>环境配置</span></a></li>
      <li><a href="_xE7_xBC_x96_xE7_xA8_x8B_xE5_xBC_x95_xE5_xAF_xBC.html"><span>编程引导</span></a></li>
      <li class="current"><a href="modules.html"><span>接口说明</span></a></li>
      <li><a href="annotated.html"><span>结构体定义</span></a></li>
      <li><a href="_xE7_x9B_xB8_xE6_x9C_xBA_xE5_x8F_x82_xE6_x95_xB0_xE8_x8A_x82_xE7_x82_xB9_xE8_xA1_xA8.html"><span>相机参数节点表</span></a></li>
      <li><a href="examples.html"><span>示例程序</span></a></li>
      <li><a href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html"><span>状态码</span></a></li>
      <li><a href="_xE5_xB8_xB8_xE8_xA7_x81_xE9_x97_xAE_xE9_xA2_x98.html"><span>常见问题</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">读写相机文件<div class="ingroups"><a class="el" href="group___xE5_x8F_x82_xE6_x95_xB0_xE8_xAE_xBE_xE7_xBD_xAE.html">参数设置</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>包含从设备读取文件、将文件写入设备等接口  
<a href="#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ga50cac3acd95fee2899e7492ffac47db4"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE8_xAF_xBB_xE5_x86_x99_xE7_x9B_xB8_xE6_x9C_xBA_xE6_x96_x87_xE4_xBB_xB6.html#ga50cac3acd95fee2899e7492ffac47db4">MV_CC_FileAccessRead</a> (IN void *handle, IN <a class="el" href="struct_m_v___c_c___f_i_l_e___a_c_c_e_s_s.html">MV_CC_FILE_ACCESS</a> *pstFileAccess)</td></tr>
<tr class="memdesc:ga50cac3acd95fee2899e7492ffac47db4"><td class="mdescLeft">&#160;</td><td class="mdescRight">从设备读取文件  <a href="#ga50cac3acd95fee2899e7492ffac47db4">更多...</a><br /></td></tr>
<tr class="separator:ga50cac3acd95fee2899e7492ffac47db4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6b8b015dbb7b67c6929bafc22321cf08"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE8_xAF_xBB_xE5_x86_x99_xE7_x9B_xB8_xE6_x9C_xBA_xE6_x96_x87_xE4_xBB_xB6.html#ga6b8b015dbb7b67c6929bafc22321cf08">MV_CC_FileAccessReadEx</a> (IN void *handle, IN OUT <a class="el" href="struct_m_v___c_c___f_i_l_e___a_c_c_e_s_s___e_x.html">MV_CC_FILE_ACCESS_EX</a> *pstFileAccessEx)</td></tr>
<tr class="memdesc:ga6b8b015dbb7b67c6929bafc22321cf08"><td class="mdescLeft">&#160;</td><td class="mdescRight">从设备读取文件（扩展接口，文件是Data数据）  <a href="#ga6b8b015dbb7b67c6929bafc22321cf08">更多...</a><br /></td></tr>
<tr class="separator:ga6b8b015dbb7b67c6929bafc22321cf08"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga67b69d346a26d82c79091f7bee9e10c9"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE8_xAF_xBB_xE5_x86_x99_xE7_x9B_xB8_xE6_x9C_xBA_xE6_x96_x87_xE4_xBB_xB6.html#ga67b69d346a26d82c79091f7bee9e10c9">MV_CC_FileAccessWrite</a> (IN void *handle, IN <a class="el" href="struct_m_v___c_c___f_i_l_e___a_c_c_e_s_s.html">MV_CC_FILE_ACCESS</a> *pstFileAccess)</td></tr>
<tr class="memdesc:ga67b69d346a26d82c79091f7bee9e10c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">将文件写入设备  <a href="#ga67b69d346a26d82c79091f7bee9e10c9">更多...</a><br /></td></tr>
<tr class="separator:ga67b69d346a26d82c79091f7bee9e10c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1543eb530bb3a05d800c5534c49914cd"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE8_xAF_xBB_xE5_x86_x99_xE7_x9B_xB8_xE6_x9C_xBA_xE6_x96_x87_xE4_xBB_xB6.html#ga1543eb530bb3a05d800c5534c49914cd">MV_CC_FileAccessWriteEx</a> (IN void *handle, IN OUT <a class="el" href="struct_m_v___c_c___f_i_l_e___a_c_c_e_s_s___e_x.html">MV_CC_FILE_ACCESS_EX</a> *pstFileAccessEx)</td></tr>
<tr class="memdesc:ga1543eb530bb3a05d800c5534c49914cd"><td class="mdescLeft">&#160;</td><td class="mdescRight">将缓存（buffer）写入设备  <a href="#ga1543eb530bb3a05d800c5534c49914cd">更多...</a><br /></td></tr>
<tr class="separator:ga1543eb530bb3a05d800c5534c49914cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga80244ce60e82b15d81341e2904465423"><td class="memItemLeft" align="right" valign="top">MV_CAMCTRL_API int __stdcall&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___xE8_xAF_xBB_xE5_x86_x99_xE7_x9B_xB8_xE6_x9C_xBA_xE6_x96_x87_xE4_xBB_xB6.html#ga80244ce60e82b15d81341e2904465423">MV_CC_GetFileAccessProgress</a> (IN void *handle, IN OUT <a class="el" href="struct_m_v___c_c___f_i_l_e___a_c_c_e_s_s___p_r_o_g_r_e_s_s.html">MV_CC_FILE_ACCESS_PROGRESS</a> *pstFileAccessProgress)</td></tr>
<tr class="memdesc:ga80244ce60e82b15d81341e2904465423"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取文件存取的进度  <a href="#ga80244ce60e82b15d81341e2904465423">更多...</a><br /></td></tr>
<tr class="separator:ga80244ce60e82b15d81341e2904465423"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<p>包含从设备读取文件、将文件写入设备等接口 </p>
<h2 class="groupheader">函数说明</h2>
<a id="ga50cac3acd95fee2899e7492ffac47db4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga50cac3acd95fee2899e7492ffac47db4">&#9670;&nbsp;</a></span>MV_CC_FileAccessRead()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_FileAccessRead </td>
          <td>(</td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN <a class="el" href="struct_m_v___c_c___f_i_l_e___a_c_c_e_s_s.html">MV_CC_FILE_ACCESS</a> *&#160;</td>
          <td class="paramname"><em>pstFileAccess</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>从设备读取文件 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN] 设备句柄 </td></tr>
    <tr><td class="paramname">pstFileAccess</td><td>[IN] 文件存取结构体 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_parametrize_camera__file_access_8cpp-example.html#a19">ParametrizeCamera_FileAccess.cpp</a>.</dd>
</dl>

</div>
</div>
<a id="ga6b8b015dbb7b67c6929bafc22321cf08"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6b8b015dbb7b67c6929bafc22321cf08">&#9670;&nbsp;</a></span>MV_CC_FileAccessReadEx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_FileAccessReadEx </td>
          <td>(</td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN OUT <a class="el" href="struct_m_v___c_c___f_i_l_e___a_c_c_e_s_s___e_x.html">MV_CC_FILE_ACCESS_EX</a> *&#160;</td>
          <td class="paramname"><em>pstFileAccessEx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>从设备读取文件（扩展接口，文件是Data数据） </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN] 设备句柄 </td></tr>
    <tr><td class="paramname">pstFileAccessEx</td><td>[IN][OUT] 文件存取结构体 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a> ；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section note"><dt>注解</dt><dd>该接口直接使用缓存数据，进行读写操作，避免直接操作文件出现无权限的问题。该接口是 <a class="el" href="group___xE8_xAF_xBB_xE5_x86_x99_xE7_x9B_xB8_xE6_x9C_xBA_xE6_x96_x87_xE4_xBB_xB6.html#ga50cac3acd95fee2899e7492ffac47db4" title="从设备读取文件">MV_CC_FileAccessRead()</a> 的扩展接口。 </dd></dl>

</div>
</div>
<a id="ga67b69d346a26d82c79091f7bee9e10c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga67b69d346a26d82c79091f7bee9e10c9">&#9670;&nbsp;</a></span>MV_CC_FileAccessWrite()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_FileAccessWrite </td>
          <td>(</td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN <a class="el" href="struct_m_v___c_c___f_i_l_e___a_c_c_e_s_s.html">MV_CC_FILE_ACCESS</a> *&#160;</td>
          <td class="paramname"><em>pstFileAccess</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>将文件写入设备 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN] 设备句柄 </td></tr>
    <tr><td class="paramname">pstFileAccess</td><td>[IN] 文件存取结构体 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_parametrize_camera__file_access_8cpp-example.html#a20">ParametrizeCamera_FileAccess.cpp</a>.</dd>
</dl>

</div>
</div>
<a id="ga1543eb530bb3a05d800c5534c49914cd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1543eb530bb3a05d800c5534c49914cd">&#9670;&nbsp;</a></span>MV_CC_FileAccessWriteEx()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_FileAccessWriteEx </td>
          <td>(</td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN OUT <a class="el" href="struct_m_v___c_c___f_i_l_e___a_c_c_e_s_s___e_x.html">MV_CC_FILE_ACCESS_EX</a> *&#160;</td>
          <td class="paramname"><em>pstFileAccessEx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>将缓存（buffer）写入设备 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN] 设备句柄 </td></tr>
    <tr><td class="paramname">pstFileAccessEx</td><td>[IN][OUT] 文件存取结构体 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> </dd></dl>
<dl class="section note"><dt>注解</dt><dd>该接口直接使用缓存数据，进行写操作，避免直接将文件写入C盘，系统保护出现写失败。该接口是 <a class="el" href="group___xE8_xAF_xBB_xE5_x86_x99_xE7_x9B_xB8_xE6_x9C_xBA_xE6_x96_x87_xE4_xBB_xB6.html#ga67b69d346a26d82c79091f7bee9e10c9" title="将文件写入设备">MV_CC_FileAccessWrite()</a> 的扩展接口。 </dd></dl>

</div>
</div>
<a id="ga80244ce60e82b15d81341e2904465423"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga80244ce60e82b15d81341e2904465423">&#9670;&nbsp;</a></span>MV_CC_GetFileAccessProgress()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MV_CAMCTRL_API int __stdcall MV_CC_GetFileAccessProgress </td>
          <td>(</td>
          <td class="paramtype">IN void *&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">IN OUT <a class="el" href="struct_m_v___c_c___f_i_l_e___a_c_c_e_s_s___p_r_o_g_r_e_s_s.html">MV_CC_FILE_ACCESS_PROGRESS</a> *&#160;</td>
          <td class="paramname"><em>pstFileAccessProgress</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取文件存取的进度 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>[IN] 设备句柄 </td></tr>
    <tr><td class="paramname">pstFileAccessProgress</td><td>[IN][OUT] 进度内容 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">MV_OK</a>；失败，返回<a class="el" href="_xE9_x94_x99_xE8_xAF_xAF_xE7_xA0_x81.html">错误码</a> （当前文件存取的状态）。 </dd></dl>
<dl class="section examples"><dt>示例</dt><dd><a class="el" href="_parametrize_camera__file_access_8cpp-example.html#a13">ParametrizeCamera_FileAccess.cpp</a>.</dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<div class="footer" style="text-align: right;">
	<hr/>
	<small></small>
</div>
<script>
	// 当前选中的菜单
	var currentMenuItem = document.querySelector('.tablist > li.current > a')
	if (currentMenuItem) { // 子菜单情况
	  window.parent.postMessage({
		navHref: currentMenuItem.href
	  }, '*')
	} else {
	  window.parent.postMessage({
		url: window.location.href
	  }, '*')
	}
  </script>
</body>
</html>